package cn;

import java.util.Scanner;

public class ATM {
	private int m;

	void deposit(int m) {
		for (int i = 100;;) {
			m += i;
			i += 100;
		}

	}

	int drawMoney(int q) {
		// ATM a = new ATM();
		// a.deposit(q);
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入要取的金额：");
		int b = sc.nextInt();
		if ((b <= q) && (b >= 100)) {
			System.out.println("请放钱：");
		}
		return b;
	}

	int balanceInquiry(int m, int q) {
		int c = m - q;
		return c;
	}

	void outPut() {
		System.out.printf("请选择%d   %d   %d", "1.存钱", "2.取钱", "3.查询");
	}

	public static void main(String[] args) {
		ATM a = new ATM();
		a.deposit(500);
		a.drawMoney(200);
		a.outPut();
	}

}
